package com.chenhao.springcloud.chenhaodesignservice.pattern.creational.builder;

/**
 * Description:
 *
 * @author chenhao
 * @date 2020/12/16 9:44
 */
public class Coach {
    private CourseBuilder courseBuilder;

    public void  setCourseBuilder(CourseBuilder courseBuilder){
        this.courseBuilder = courseBuilder;
    }

    public Course makeCourse(String courseName, String CoursePPt, String  courseVideo,String courseArticle,String courseQA){
        this.courseBuilder.buildCourseName(courseName);
        this.courseBuilder.buildCourseArticle(courseArticle);
        this.courseBuilder.buildCoursePPT(CoursePPt);
        this.courseBuilder.buildCourseQA(courseQA);
        this.courseBuilder.buildCourseVideo(courseVideo);
        return this.courseBuilder.makeCourse();
    }
}
